package com.devbobcorn.nekorization.client.rendering;

import com.devbobcorn.nekorization.Nekorization;
import com.devbobcorn.nekorization.client.event.ClientModEventSubscriber;
import com.devbobcorn.nekorization.client.model.SpriteModel;
import com.devbobcorn.nekorization.entities.SpriteEntity;

import net.minecraft.client.renderer.entity.EntityRendererProvider;
import net.minecraft.client.renderer.entity.MobRenderer;
import net.minecraft.resources.ResourceLocation;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;

@OnlyIn(Dist.CLIENT)
public class SpriteRenderer extends MobRenderer<SpriteEntity, SpriteModel<SpriteEntity>> {
	public static final ResourceLocation GRAY = new ResourceLocation(Nekorization.MODID, "textures/entity/sprite/gray.png");

	public SpriteRenderer(EntityRendererProvider.Context ctx) {
		super(ctx, new SpriteModel<SpriteEntity>(ctx.bakeLayer(ClientModEventSubscriber.SPRITE)), 0.3F);
	}

	public ResourceLocation getTextureLocation(SpriteEntity entity) {
		return GRAY;
	}
}